package io.gitee.hechenl.fastiotreport.service.impl;

import io.gitee.hechenl.fastiotreport.mapper.EnergyHalfMapper;
import io.gitee.hechenl.fastiotreport.service.IEnergyHalfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Service
public class EnergyHalfServiceImpl implements IEnergyHalfService {

    @Autowired
    private EnergyHalfMapper energyHalfMapper;

    @Override
    public BigDecimal sumValue(List<String> pointIds, LocalDateTime start, LocalDateTime end) {
        return energyHalfMapper.sumValue(pointIds, start, end);
    }
}
